<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8"/>
    <title>数据备份</title>
    <meta content="webkit" name="renderer"/>
    <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible"/>
    <meta
            content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0"
            name="viewport"
    />
    <link href="../layui/css/layui.css" media="all" rel="stylesheet"/>
    <link href="../style/admin.css" media="all" rel="stylesheet"/>
    <link href="../style/home.css" media="all" rel="stylesheet"/>
    <script src="../layui/layui.js"></script>
    <style type="text/css">
        html,
        body {
            width: 100%;
            height: 100%;
            margin: 0px;
            padding: 0px;
            border: 0px;
            overflow: hidden;
            /* overflow-x: scroll; */
        }

        .layui-card-body .layui-table {
            margin: 0px 0px;
        }

        .layui-input {
            height: 28px;
        }
    </style>
</head>
<body layadmin-themealias="default">
<div class="layui-card" style="height: 100%">
    <div class="layui-card-header font20">
        <div id="title">数据备份</div>
        <div class="layui-layout-right" style="margin-right: 10px">
            <div style="float: left">
                <button class="layui-btn layui-btn-normal layui-btn-sm" lay-event="createDataBackup" type="button">
                    <i class="layui-icon layui-icon-file"></i>创建备份
                </button>
            </div>
        </div>
    </div>
    <div class="layui-card-body">
        <div class="layui-fluid" style="padding: 0px">
            <table id="dataTable" lay-filter="dataTable"></table>
        </div>
    </div>
</div>
<script id="operationBar" type="text/html">
    {{#  if(d.status=="0"){ }}
    <a lay-filter="execute" href="#" lay-event="execute">
        <i class="layui-icon layui-icon-triangle-r p3" title="执行"></i>
    </a>
    {{#  } }}
    {{#  if(d.status=="2"){ }}
    <a lay-filter="download" href="#" lay-event="download">
        <i class="layui-icon layui-icon-download-circle p3" title="下载"></i>
    </a>
    {{#  } }}
</script>
<script id="StatusTpl" type="text/html">
    {{#  if(d.status=="0"){ }}
    未执行
    {{#  } }}
    {{#  if(d.status=="1"){ }}
    执行中
    {{#  } }}
    {{#  if(d.status=="2"){ }}
    <span style="color:#1E9FFF">已执行</span>
    {{#  } }}
    {{#  if(d.status=="3"){ }}
    <span style="color:#FF5722">备份失败</span>
    {{#  } }}
</script>
<script src="../js/modules/systemManage/dataBackup.js"></script>
<script type="text/javascript" src="../js/lib/watermark.js"></script>
</body>
</html>
